package demo2;

public class Test {
    public static void drowMap(IShape iShape){
       iShape.draw();
    }
    /*5.接口是不可以进行实例化的*/
   // IShape iShape = new IShape();
    public static void main(String[] args) {
        IShape iShape1 = new Rect();
        IShape iShape2 = new Cycle();

        drowMap(iShape1);
        drowMap(iShape2);


    }
}
